/**
 * 
 */
package org.apache.struts.register.service;

import org.apache.struts.register.model.Person;

/**
 *
 * @author wanghy
 * @since 2014-3-7
 * 
 */
public class EditServiceInMemory implements EditService {

	private static Person person;
	
	static {
		person = new Person();
		person.setFirstName("Bruce");
		person.setLastName("Phillips");
		person.setEmail("name@mail.com");
		person.setPhoneNumber("123-456-9999");
		person.setSport("basketball");
		person.setGender("not sure");
		person.setResidency("KS");
		person.setOver21(true);
		person.setCarModels(new String[]{"Ford", "Nissan"});
	}

	/**
	 * @return the person
	 */
	public Person getPerson() {
		return person;
	}
	
	public void savePerson(Person person) {
		EditServiceInMemory.person = person;
	}
	
}
